#include <allegro.h>
#include <stdio.h>

#define NB_IMAGES 3


typedef struct
{
int x,y;
int direction; // 0 = droite , 1 = gauche 
BITMAP *img_right[NB_IMAGES];
BITMAP *img_left[NB_IMAGES];
BITMAP *img_face;
} MB;


//Background

BITMAP* load_background_bmp(char chemin_background[]);
void draw_background(BITMAP *Background,BITMAP*Buffer);
void destroy_background(BITMAP * Background);


//MB

void load_MB(MB *mini);
void destroy_MB(MB *mini);
void init_MB(MB *mini);

void move_MB_right(MB *mini,int *compteur,BITMAP * Background);
void move_MB_left(MB *mini,int *compteur,BITMAP * Background);
void move_MB(MB *mini,int *compteur,BITMAP * Background);

void draw_MB(MB mini,BITMAP *Buffer, int compteur);
